﻿using System;
using System.ComponentModel;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace BusinessLogic
{
    public class Checkout
    {
        public static int OutRoom(string roomID, string roomPrice,string personName,string checkinDate,string checkoutDate,string roomStatus)
        {
            
            DataAccess.Checkout _co = new DataAccess.Checkout();
            _co.roomID = roomID;
            _co.roomPrice = Convert.ToDouble(roomPrice);
            _co.personName = personName;
            _co.roomStatus = roomStatus;
            _co.checkTime = checkinDate;
            _co.outTime = checkoutDate;

            int result = DataAccess.Checkout.OutRoom(_co);
            return result;

        }
    }
}
